# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>

buildarch=8

pkgname=firmware-oak
pkgver=1.0
pkgrel=1
pkgdesc="Additional firmware for Oak chromebooks"
arch=('aarch64')
url="https://archlinuxarm.org"
license=('custom')
source=('https://archlinuxarm.org/builder/src/oak/sd8787_uapsta.bin'
        'https://archlinuxarm.org/builder/src/oak/sd8797_uapsta.bin'
        'https://archlinuxarm.org/builder/src/oak/sd8897_uapsta.bin')
md5sums=('bda543cb5943eac34e16d12911f3ee99'
         '286476f57eaea025b210dc9220b2fc68'
         '021ed50e24074d27ae88c545137438d0')

package() {
  install -m 0755 -d "${pkgdir}/usr/lib/firmware/updates/mrvl"
  install -m 0644 sd{8787,8797,8897}_uapsta.bin "${pkgdir}/usr/lib/firmware/updates/mrvl"
}
